// 申请
const bscAdaptOldApply = (request) => {
	return {
		view_bscAdaptOldApply_page(query) {
			return request(`/application/bscAdaptOldApply/page`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldApply_view(id) {
			return request(`/application/bscAdaptOldApply/${id}`, {
				method: 'get',
			})
		},
        view_bscAdaptOldApply_add(query) {
			return request(`/application/bscAdaptOldApply/add`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldApply_edit(query) {
			return request(`/application/bscAdaptOldApply/edit`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldApply_del(id=[]) {
			return request(`/application/bscAdaptOldApply/del`, {
				method: 'post',
                data:{
                    id:id[0]
                }
			})
		},
        // 
        view_bscAdaptOldApply_export(query) {
			return request(`/application/bscAdaptOldApply/export`, {
				method: 'post',
                data:query
			})
		},
		// 模板下载
		view_bscAdaptOld_apply_import(query={},onUploadProgress) {
			return request(`/bussiness/bscAdaptOld/apply/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
                data:query
			})
		},
		// 导入
		view_bscAdaptOld_apply_downloadTemplate(query) {
			return request(`/bussiness/bscAdaptOld/apply/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
                data:query
			})
		},
	}
}
// 评估
const bscAdaptOldAssessment = (request) => {
	return {
		view_bscAdaptOldAssessment_page(query) {
			return request(`/application/bscAdaptOldAssessment/page`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldAssessment_view(id) {
			return request(`/application/bscAdaptOldAssessment/${id}`, {
				method: 'get',
			})
		},
        view_bscAdaptOldAssessment_add(query) {
			return request(`/application/bscAdaptOldAssessment/add`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldAssessment_edit(query) {
			return request(`/application/bscAdaptOldAssessment/edit`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldAssessment_del(id=[]) {
			return request(`/application/bscAdaptOldAssessment/del`, {
				method: 'post',
                data:{
                    id:id[0]
                }
			})
		},
        // 
        view_bscAdaptOldAssessment_export(query) {
			return request(`/application/bscAdaptOldAssessment/export`, {
				method: 'post',
                data:query
			})
		},
		// 模板下载
		view_bscAdaptOld_assessment_import(query={},onUploadProgress) {
			return request(`/bussiness/bscAdaptOld/assessment/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
                data:query
			})
		},
		// 导入
		view_bscAdaptOld_assessment_downloadTemplate(query) {
			return request(`/bussiness/bscAdaptOld/assessment/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
                data:query
			})
		},
	}
}
// 实施
const bscAdaptOldImplementation = (request) => {
	return {
		view_bscAdaptOldImplementation_page(query) {
			return request(`/application/bscAdaptOldImplementation/page`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldImplementation_view(id) {
			return request(`/application/bscAdaptOldImplementation/${id}`, {
				method: 'get',
			})
		},
        view_bscAdaptOldImplementation_add(query) {
			return request(`/application/bscAdaptOldImplementation/add`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldImplementation_edit(query) {
			return request(`/application/bscAdaptOldImplementation/edit`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldImplementation_del(id=[]) {
			return request(`/application/bscAdaptOldImplementation/del`, {
				method: 'post',
                data:{
                    id:id[0]
                }
			})
		},
        // 
        view_bscAdaptOldImplementation_export(query) {
			return request(`/application/bscAdaptOldImplementation/exportAll`, {
				method: 'post',
                data:query
			})
		},
		// 模板下载
		view_bscAdaptOld_implementation_import(query={},onUploadProgress) {
			return request(`/bussiness/bscAdaptOld/implementation/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
                data:query
			})
		},
		// 导入
		view_bscAdaptOld_implementation_downloadTemplate(query) {
			return request(`/bussiness/bscAdaptOld/implementation/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
                data:query
			})
		},
	}
}
// 实施子表格
const bscAdaptDevice = (request) => {
	return {
		view_bscAdaptDevice_page(query) {
			return request(`/application/bscAdaptDevice/page`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptDevice_view(id) {
			return request(`/application/bscAdaptDevice/${id}`, {
				method: 'get',
			})
		},
        view_bscAdaptDevice_add(query) {
			return request(`/application/bscAdaptDevice/add`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptDevice_edit(query) {
			return request(`/application/bscAdaptDevice/edit`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptDevice_del(id=[]) {
			return request(`/application/bscAdaptDevice/del`, {
				method: 'post',
                data:{
                    batchesDel:id
                }
			})
		},
		// 安装金额
		view_bscAdaptDevice_amount(query){
			return request(`/application/bscAdaptDevice/amount`, {
				method: 'post',
                data:query
			})
		},
        // 
        view_bscAdaptDevice_export(query) {
			return request(`/application/bscAdaptDevice/export`, {
				method: 'post',
                data:query
			})
		},
		// 模板下载
		view_bscAdaptOld_device_import(query={},onUploadProgress) {
			return request(`/bussiness/bscAdaptOld/device/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
                data:query
			})
		},
		// 导入
		view_bscAdaptOld_device_downloadTemplate(query) {
			return request(`/bussiness/bscAdaptOld/device/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
                data:query
			})
		},
	}
}
// 监督
const bscAdaptMonitor = (request) => {
	return {
		view_bscAdaptMonitor_page(query) {
			return request(`/application/bscAdaptMonitor/page`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptMonitor_view(id) {
			return request(`/application/bscAdaptMonitor/${id}`, {
				method: 'get',
			})
		},
        view_bscAdaptMonitor_add(query) {
			return request(`/application/bscAdaptMonitor/add`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptMonitor_edit(query) {
			return request(`/application/bscAdaptMonitor/edit`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptMonitor_del(id=[]) {
			return request(`/application/bscAdaptMonitor/del`, {
				method: 'post',
                data:{
                    batchesDel:id
                }
			})
		},
        // 
        view_bscAdaptMonitor_export(query) {
			return request(`/application/bscAdaptMonitor/export`, {
				method: 'post',
                data:query
			})
		},
		// 模板下载
		view_bscAdaptOld_monitor_import(query={},onUploadProgress) {
			return request(`/bussiness/bscAdaptOld/monitor/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
                data:query
			})
		},
		// 导入
		view_bscAdaptOld_monitor_downloadTemplate(query) {
			return request(`/bussiness/bscAdaptOld/monitor/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
                data:query
			})
		},
	}
}
// 验收
const bscAdaptOldAcceptance = (request) => {
	return {
        // 归档
        view_file_bscAdaptOld_page(query){
			return request(`/application/bscAdaptOld/file/page`, {
				method: 'post',
                data:query
			})
		},
		view_bscAdaptOldAcceptance_page(query) {
			return request(`/application/bscAdaptOldAcceptance/page`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldAcceptance_view(id) {
			return request(`/application/bscAdaptOldAcceptance/${id}`, {
				method: 'get',
			})
		},
        view_bscAdaptOldAcceptance_add(query) {
			return request(`/application/bscAdaptOldAcceptance/add`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldAcceptance_edit(query) {
			return request(`/application/bscAdaptOldAcceptance/edit`, {
				method: 'post',
                data:query
			})
		},
        view_bscAdaptOldAcceptance_del(id=[]) {
			return request(`/application/bscAdaptOldAcceptance/del`, {
				method: 'post',
                data:{
					batchesDel:id
                }
			})
		},
        // 
        view_bscAdaptOldAcceptance_export(query) {
			return request(`/application/bscAdaptOldAcceptance/export`, {
				method: 'post',
                data:query
			})
		},
		// 模板下载
		view_bscAdaptOld_acceptance_import(query={},onUploadProgress) {
			return request(`/bussiness/bscAdaptOld/acceptance/import`, {
				method: 'post',
				headers: {
					'Content-Type': 'multipart/form-data; boundary=something',
				},
				onUploadProgress,
                data:query
			})
		},
		// 导入
		view_bscAdaptOld_acceptance_downloadTemplate(query) {
			return request(`/bussiness/bscAdaptOld/acceptance/downloadTemplate`, {
				method: 'post',
				responseType: 'blob',
                data:query
			})
		},
	}
}

export default ({ request }: any) => ({
	...bscAdaptOldApply(request),
    ...bscAdaptOldAssessment(request),
    ...bscAdaptOldImplementation(request),
    ...bscAdaptMonitor(request),
    ...bscAdaptOldAcceptance(request),
    ...bscAdaptDevice(request)

})
